import request from '@/utils/request'

// 查询事件接报附件列表
export function listReceiveattach(query) {
  return request({
    url: '/dyn/receiveattach/list',
    method: 'get',
    params: query
  })
}

// 查询事件接报附件详细
export function getReceiveattach(attachid) {
  return request({
    url: '/dyn/receiveattach/' + attachid,
    method: 'get'
  })
}

// 新增事件接报附件
export function addReceiveattach(data) {
  return request({
    url: '/dyn/receiveattach',
    method: 'post',
    data: data
  })
}

// 修改事件接报附件
export function updateReceiveattach(data) {
  return request({
    url: '/dyn/receiveattach',
    method: 'put',
    data: data
  })
}

// 删除事件接报附件
export function delReceiveattach(attachid) {
  return request({
    url: '/dyn/receiveattach/' + attachid,
    method: 'delete'
  })
}
